import request from "@/utils/request"

export function updateArticleDelete(data) {
    return request({
        url:'/admin/articles',
        method:'put',
        data:data
    })
}

export function deleteArticles(param){
    return request({
        url:'/admin/articles',
        method:'delete',
        data:param.data
    })
}

export function exportArticles(data) {
    return request({
        url: '/admin/articles/export',
        method: 'post',
        data:data
    })
}
export function updateArticleTop(data) {
      return request({
          url:'/admin/articles/top',
          method:'put',
          data:data
      })
}

export function listArticleBacks(param) {
    return request({
        url:'/admin/articles',
        method:'get',
        params:param
    })
}
